﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Web;

namespace IsPay.Logic
{
    public class CodeMange
    {
        public static String getMD5StringCode(String strsource)
        {
            byte[] result = Encoding.ASCII.GetBytes(strsource);
            MD5 md5 = new MD5CryptoServiceProvider();
            byte[] output = md5.ComputeHash(result);
            md5.Clear();
            String strMD5pwd = BitConverter.ToString(output).Replace("-", "");
            return strMD5pwd;
        }
    }
}